<template>
	<view class="white-row">
		<image :src="activeImg" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				activeImg: '../../static/img/guidance/618yr.png'
			};
		},
		onLoad() {
			this.genTime();
		},
		methods: {
			genTime() {
				let changeDate = new Date('2019/06/11 00:00:00').getTime();
				let now = new Date().getTime();
				console.log("changeDate >= now===" + changeDate >= now)
				if (changeDate <= now) {
					this.activeImg = "../../static/img/guidance/active.png"
				}
			}
		}
	};
</script>

<style lang="scss">
	.white-row {
		width: 100%;
		height: 100%;
		display: block;
		line-height: 0;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>
